# 数据库变更记录
# (数据库，类→SQL语句) ORM
from django.db import models


# Create your models here.
class UserInfo(models.Model):
    name = models.CharField(max_length=32)
    password = models.CharField(max_length=64)
    age = models.IntegerField(default=2)
    # 增加列时，设置默认值
    # size = models.IntegerField(default=2)
    # 增加列时，允许为空
    # scores = models.IntegerField(null=True,blank=True)


class Department(models.Model):
    title = models.CharField(max_length=16)
